<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTagArticlesTable extends Migration
{
    //提交
    public function up()
    {
        Schema::create('tag_articles', function (Blueprint $table) {
			$table->timestamps();
            $table->unsignedInteger ('tag_id');
            $table->unsignedInteger ('article_id');
        });
    }

    //回滚
    public function down()
    {
        Schema::dropIfExists('tag_articles');
    }
}
